﻿using System;
using System.Collections.Generic;
using System.Text;
using NLog;

namespace FDSimpleModelGenerator.Logging
{
    /// <summary>
    /// NLog日志
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class NLogger<T> : ISystemLog<T>
    {
        private readonly ILogger _logger;

        public NLogger()
        {
            _logger = LogManager.GetLogger(typeof(T).FullName, typeof(T));
        }

        public void Info(string message)
        {
            _logger.Info(message);
        }

        public void Error(string message)
        {
            _logger.Error(message);
        }
    }
}
